package com.ps.dao.dept;

import java.sql.Timestamp;
import java.util.List;
import org.hibernate.LockMode;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.context.ApplicationContext;
import org.springframework.orm.hibernate3.support.HibernateDaoSupport;

import com.ps.dao.BaseDaoSupport;
import com.ps.pojo.dept.WorkPosition;

/**
 * A data access object (DAO) providing persistence and search support for
 * WorkPosition entities. Transaction control of the save(), update() and
 * delete() operations can directly support Spring container-managed
 * transactions or they can be augmented to handle user-managed Spring
 * transactions. Each of these methods provides additional information for how
 * to configure it for the desired type of transaction control.
 * 
 * @see com.ps.pojo.dept.WorkPosition
 * @author MyEclipse Persistence Tools
 */

public class WorkPositionDAO extends BaseDaoSupport<WorkPosition> {

	// property constants
	public static final String NAME = "name";
	public static final String DEPARTMENT_ID = "departmentId";
	public static final String SALARY_SET_OF_BOOKS_ID = "salarySetOfBooksId";
	public static final String PERFORMANCE_SCORE = "performanceScore";
	public static final String REMARK = "remark";
	public static final String INPUTER_ID = "inputerId";

	protected void initDao() {
		// do nothing
	}


	public static WorkPositionDAO getFromApplicationContext(
			ApplicationContext ctx) {
		return (WorkPositionDAO) ctx.getBean("WorkPositionDAO");
	}
}